/*
 * MainFrame.java
 * Fenetre principale de l'application
 *
 * Created on 23 févr. 2010, 20:46:49
 */
package chipwits;

import chipwits.operator.OpType;
import chipwits.operator.Op_base;
import chipwits.operator.Op_case;

/**
 *
 * @author Emmanuel Roussel
 */
public class MainFrame extends javax.swing.JFrame{

    /** Creates new form MainFrame */
    public MainFrame() {
        initComponents();
        Op_case.panel=mainPanel;
        //mainPanel.setBounds(this.getX(), this.getY(), MainPanel.nbCasesEnX * (Operator.ICON_WIDTH + 15) + 15, MainPanel.nbCasesEnY*(Operator.ICON_HEIGHT + 15) + 15);
        
        poubelle.setText("");
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new Op_base(OpType.Type.SENTIR);
        jLabel2 = new Op_base(OpType.Type.VOIR);
        jLabel3 = new Op_base(OpType.Type.TOUCHER);
        mainPanel = new MainPanel();
        poubelle = new Op_base(OpType.Type.POUBELLE);
        jLabel4 = new Op_base(OpType.Type.CLAVIER);
        jLabel5 = new Op_base(OpType.Type.BOUGER);
        jLabel6 = new Op_base(OpType.Type.PRENDRE);
        jLabel7 = new Op_base(OpType.Type.RETOUR_DEBUT);
        jLabel8 = new Op_base(OpType.Type.ALEATOIRE);
        jLabel9 = new Op_base(OpType.Type.SAUVER_CHOSE);
        jLabel10 = new Op_base(OpType.Type.SON);
        jLabel11 = new Op_base(OpType.Type.SOUS_ESPACE);
        jLabel12 = new Op_base(OpType.Type.ZIGOUILLER);
        jLabel13 = new Op_base(OpType.Type.RETOUR_DEBUT_ESPACE);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("ChipWits++      Emmanuel Roussel");

        jLabel1.setText("Sentir");
        jLabel1.setToolTipText("Sentir");

        jLabel2.setText("Voir");
        jLabel2.setToolTipText("Voir");

        jLabel3.setText("Toucher");
        jLabel3.setToolTipText("Toucher");

        mainPanel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 383, Short.MAX_VALUE)
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 353, Short.MAX_VALUE)
        );

        poubelle.setText("Poubelle");

        jLabel4.setText("Clavier");
        jLabel4.setToolTipText("Toucher");

        jLabel5.setText("Bouger");
        jLabel5.setToolTipText("Toucher");

        jLabel6.setText("Prendre");
        jLabel6.setToolTipText("Toucher");

        jLabel7.setText("Loop début");
        jLabel7.setToolTipText("Toucher");

        jLabel8.setText("Aléatoire");
        jLabel8.setToolTipText("Toucher");

        jLabel9.setText("Sauver chose");
        jLabel9.setToolTipText("Toucher");

        jLabel10.setText("Son");
        jLabel10.setToolTipText("Toucher");

        jLabel11.setText("Sous-espace");
        jLabel11.setToolTipText("Toucher");

        jLabel12.setText("Zigouiller");
        jLabel12.setToolTipText("Toucher");

        jLabel13.setText("Loop espace");
        jLabel13.setToolTipText("Toucher");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(mainPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addGap(18, 18, 18)
                                    .addComponent(jLabel1)
                                    .addContainerGap())
                                .addGroup(layout.createSequentialGroup()
                                    .addGap(28, 28, 28)
                                    .addComponent(jLabel12)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(layout.createSequentialGroup()
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 292, Short.MAX_VALUE)
                                            .addComponent(poubelle)
                                            .addContainerGap())
                                        .addGroup(layout.createSequentialGroup()
                                            .addGap(42, 42, 42)
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(jLabel9)
                                                .addGroup(layout.createSequentialGroup()
                                                    .addComponent(jLabel11)
                                                    .addGap(47, 47, 47)
                                                    .addComponent(jLabel7)))
                                            .addContainerGap()))))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(jLabel2)
                                .addContainerGap()))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(18, 18, 18)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel4)
                                .addComponent(jLabel3)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel13)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel6)
                                        .addGroup(layout.createSequentialGroup()
                                            .addComponent(jLabel5)
                                            .addGap(73, 73, 73)
                                            .addComponent(jLabel8)))))
                            .addGap(292, 292, 292)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(47, 47, 47)
                        .addComponent(jLabel10)
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel1)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel2)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jLabel3)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel4)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel5)
                                            .addComponent(jLabel8))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel6)
                                        .addGap(37, 37, 37)
                                        .addComponent(poubelle)
                                        .addGap(5, 5, 5))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                        .addComponent(jLabel9)
                                        .addGap(29, 29, 29)))
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel7)
                                            .addComponent(jLabel11))
                                        .addGap(21, 21, 21)
                                        .addComponent(jLabel10))
                                    .addGroup(layout.createSequentialGroup()
                                        .addGap(46, 46, 46)
                                        .addComponent(jLabel13)))))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel12)
                        .addGap(171, 171, 171))))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * Pour pouvoir lancer juste cette fenetre.
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new MainFrame().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    public javax.swing.JPanel mainPanel;
    private javax.swing.JLabel poubelle;
    // End of variables declaration//GEN-END:variables

}
